package com.googlecode.hessianserver.example.impl;

import java.math.BigInteger;

import com.googlecode.hessianserver.example.api.Calculator;

/**
 * Implementation of Calculator
 *
 * @author rayvanderborght
 */
public class CalculatorImpl implements Calculator
{
	/**
	 * @inheritDoc
	 */
	@Override
	public int add(int a, int b)
	{
		return a + b;
	}

	/**
	 * @inheritDoc
	 */
	@Override
	public BigInteger add(BigInteger a, BigInteger b) {
		return a.add(b);
	}

	/**
	 * @inheritDoc
	 */
	@Override
	public int multiply(int a, int b)
	{
		return a * b;
	}

	/**
	 * @inheritDoc
	 */
	@Override
	public int divide(int a, int b)
	{
		return a / b;
	}
}
